/*工资核对记录-有疑问View*/
import 'package:flutter/cupertino.dart';
import 'package:frametrim/utility/screen.dart';
import 'package:frametrim/utility/sq_color.dart';
import 'package:frametrim/views/textlimitDisplayView.dart';
import 'package:frametrim/views/textlimitDisplayView2.dart';

class SalaryRecordQueryViuew extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: <Widget>[
          Row(
            children: <Widget>[
              Expanded(
                child: Text(
                  '我对工资有疑问',
                  style: TextStyle(fontSize: 16, color: SQColor.color_222222),
                ),
              ),
              Text(
                '2022.3.11  13:45:21',
                style: TextStyle(fontSize: 16, color: SQColor.color_222222),
              ),
            ],
          ),
          SizedBox(
            height: 15,
          ),
          Row(
            children: <Widget>[
              Image.asset(
                'image/icon_records_01.png',
                width: 28,
                height: 28,
              ),
              SizedBox(
                width: 8,
              ),
              Text(
                '龙子湖智慧岛',
                style: TextStyle(
                    fontSize: 20,
                    color: SQColor.black,
                    fontWeight: FontWeight.bold),
              ),
            ],
          ),
          SizedBox(
            height: 15,
          ),
          Text(
            '我的反馈原因',
            style: TextStyle(fontSize: 16, color: SQColor.black),
          ),
          SizedBox(
            height: 10,
          ),
          Wrap(
            spacing: 16,
            runSpacing: 8,
            children: [
              buildAueryReason('银行卡问题'),
              buildAueryReason('银行卡问题'),
            ],
          ),
          SizedBox(
            height: 10,
          ),
          Text(
            '我的问题描述:',
            style: TextStyle(fontSize: 16, color: SQColor.black),
          ),
          Container(
            padding: EdgeInsets.all(10),
            child: OPenButtonRichText(
              text:
                  '据秘鲁《公言报》报道，秘鲁卫生部28日发布的数据显示，过去一天，秘鲁新增3430例新冠确诊病例，累计确诊达279419例；新增死亡182例，累计死亡9317例。资料图：受疫情影响，当地时间3月17日，秘鲁政府宣布关闭边境，在秘鲁和玻利维亚边境，士兵设置路障。',
              width: (Screen.width - 20),
            ),
          ),
        ],
      ),
    );
  }

  /*有疑问原因*/
  Widget buildAueryReason(String reason) {
    return Container(
      padding: EdgeInsets.symmetric(horizontal: 17, vertical: 12),
      decoration: ShapeDecoration(
          color: SQColor.color_BDC7FF,
          shape: RoundedRectangleBorder(
              borderRadius: BorderRadius.all(Radius.circular(3)))),
      child: Text(
        reason,
        style: TextStyle(fontSize: 14, color: SQColor.color_222222),
      ),
    );
  }
}
